<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@taglib prefix="shiro" uri="http://shiro.apache.org/tags" %>
<html>
<head>
    <title>课程表</title>

    <!--引入公共的easyui文件头-->
    <%@include file="/WEB-INF/views/commons/common_easyui.jsp" %>

    <script type="text/javascript" src="/static/js/system/curriculumTable.js"></script>
</head>
<body>


<body class="easyui-layout">
<div data-options="region:'west',title:'WEST',split:true" style="width:270px; left:20px">

    <div id="cc" class="easyui-calendar" name="study_date" style="margin-left: 10px; width:240px;height:280px;"></div>


    <div style="background-color: #aac5e7">班级</div>


    <div class="easyui-layout" fit="true">
        <div region="south" split="true" border="false" style="height:300px;">


        </div>
        <div region="center" border="false">

            <div style="background-color: #99cdff">学科:<input class="easyui-combobox" type="text" id="curriculumSeries" name="curriculumSeries" prompt="科目"
                                                             data-options="url:'/curriculumSeries/listAll',valueField: 'id',
                    textField: 'name',panelHeight:'auto'">
            <a  href="#" class="easyui-linkbutton" data-options="iconCls:'icon-search',plain:true"
              onclick="selectClassName()">查询</a>
            </div>
            <table id="easyui-datagrid"></table>
        </div>

    </div>
</div>
<div data-options="region:'center'" style="padding:5px;background:#eee;">



    <!--begin信息列表-->
    <table id="curriculumTable_datagrid"></table>
    <!--end信息列表-->


    <!--begin左上角工具栏-->
    <div id="curriculumTable_tb">
        <shiro:hasPermission name="curriculumTable:save">
        <a href="javascript:;" class="easyui-linkbutton" data-options="iconCls:'icon-add',plain:true"
           data-cmd="add">增加</a>
        </shiro:hasPermission>
        <shiro:hasPermission name="curriculumTable:delete">
        <a href="javascript:;" class="easyui-linkbutton" data-options="iconCls:'icon-remove',plain:true"
           data-cmd="remove">删除</a>
        </shiro:hasPermission>
        <shiro:hasPermission name="curriculumTable:update">
        <a href="javascript:;" class="easyui-linkbutton" data-options="iconCls:'icon-edit',plain:true" data-cmd="edit">编辑</a>
        </shiro:hasPermission>
        <a href="javascript:;" class="easyui-linkbutton" data-options="iconCls:'icon-reload',plain:true"
           data-cmd="reload">刷新</a>
        <input class="easyui-combobox" type="text" id="gradeName" name="gradeName" prompt="班级"
               data-options="url:'/grade/listAll',valueField: 'id',
                    textField: 'name',panelHeight:'auto',width:80">

        <input class="easyui-combobox" type="text" id="headTeacher" name="headTeacher" prompt="老师"
               data-options="url:'/employee/selectUsernameByJobs?jobs=老师',valueField: 'id',
                        textField: 'username',panelHeight:'auto',width:80">

        <input class="easyui-combobox" type="text" id="classRoom" name="classRoom" prompt="教室"
               data-options="url:'/classRoom/listAll',valueField: 'id',
                    textField: 'name',panelHeight:'auto',width:80">

        <a id="curriculum_btn" href="#" class="easyui-linkbutton" data-options="iconCls:'icon-search',plain:true"
           data-cmd="queryKeyWord">快查</a>

        <input class="easyui-datebox" type="text" id="beginDate" name="beginDate" data-options="width:100">~
        <input class="easyui-datebox" type="text" id="endDate" name="endDate" data-options="width:100">
        <a id="btn" href="#" class="easyui-linkbutton" data-options="iconCls:'icon-search',plain:true"
           data-cmd="select">按日期查询</a>
    </div>
    <!--end左上角工具栏-->

    <!--begin添加/编辑对话框-->
    <div id="curriculumTable_dialog" align="center">
        <form id="curriculumTable_form" method="post">
            <table style="margin-top: 20px;">
                <input type="hidden" name="id" id="curriculumTableId">
                <tr>
                    <td>日期</td>
                    <td><input class="easyui-datebox" name="date"></td>
                </tr>
                <tr>
                    <td>班级</td>
                    <td><input class="easyui-combobox" name="grade.id" data-options="url:'/grade/listAll',valueField: 'id',
                    textField: 'name',panelHeight:'auto'"></td>
                </tr>
                <tr>
                    <td>课程</td>
                    <td><input class="easyui-combobox" name="curriculum.id" data-options="url:'/curriculum/listAll',valueField: 'id',
                    textField: 'name',panelHeight:'auto'"></td>
                </tr>
                <tr>
                    <td>班主任</td>
                    <td><input class="easyui-combobox" name="headTeacher.id" data-options="url:'/employee/selectUsernameByJobs?jobs=老师', valueField:'id',
                    textField: 'username',panelHeight:'auto'"></td>
                </tr>
                <tr>
                    <td>上课老师</td>
                    <td><input class="easyui-combobox" name="subjectTeacher.id" data-options="url:'/employee/selectUsernameByJobs?jobs=老师', valueField:'id',
                    textField: 'username',panelHeight:'auto'"></td>
                </tr>
                <tr>
                    <td>教室</td>
                    <td><input class="easyui-combobox" name="classRoom.id" data-options="url:'/classRoom/listAll',valueField: 'id',
                    textField: 'name',panelHeight:'auto'"></td>
                </tr>
                <tr>
                    <td>状态</td>
                    <td><input class="easyui-combobox" name="state" data-options="valueField: 'label',
                    textField: 'value',panelHeight:'auto',
                    data: [{
                    label: '0',
                    value: '未开班'
                    },{
                    label: '1',
                    value: '已开班'
                    }]"></td>
                </tr>
                <tr>
                    <td>备注</td>
                    <td><input class="easyui-textbox" name="remark" data-options="multiline:true"
                               style="width:300px;height:100px"></td>
                </tr>
            </table>
        </form>
    </div>
    <!--end添加/编辑对话框-->

    <!--begin添加/编辑对话框底部按钮-->
    <div id="curriculumTable_bb">
        <a href="javascript:;" class="easyui-linkbutton" plain="true" iconCls="icon-save" data-cmd="save">保存</a>
        <a href="javascript:;" class="easyui-linkbutton" plain="true" iconCls="icon-cancel" data-cmd="cancel">取消</a>
    </div>
    <!--end添加/编辑对话框底部按钮-->

</div>
</body>
</body>
</html>
